/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "供应商管理",TableName = "Supplier")]
    public partial class Supplier:BaseEntity
    {
        /// <summary>
       ///主键id
       /// </summary>
       [Key]
       [Display(Name ="主键id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       /// <summary>
       ///供应商编码
       /// </summary>
       [Display(Name ="供应商编码")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierCode { get; set; }

       /// <summary>
       ///供应商名称
       /// </summary>
       [Display(Name ="供应商名称")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierName { get; set; }

       /// <summary>
       ///供应商简称
       /// </summary>
       [Display(Name ="供应商简称")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierReferred { get; set; }

       /// <summary>
       ///供应商英文名称
       /// </summary>
       [Display(Name ="供应商英文名称")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierEngName { get; set; }

       /// <summary>
       ///供应商简介
       /// </summary>
       [Display(Name ="供应商简介")]
       [MaxLength(300)]
       [Column(TypeName="nvarchar(300)")]
       [Editable(true)]
       public string SupplierDesc { get; set; }

       /// <summary>
       ///供应商地址
       /// </summary>
       [Display(Name ="供应商地址")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierAddress { get; set; }

       /// <summary>
       ///供应商等级
       /// </summary>
       [Display(Name ="供应商等级")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? SupplierLevel { get; set; }

       /// <summary>
       ///供应商评分
       /// </summary>
       [Display(Name ="供应商评分")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? SupplierRating { get; set; }

       /// <summary>
       ///供应商官网地址
       /// </summary>
       [Display(Name ="供应商官网地址")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string WebsiteAddress { get; set; }

       /// <summary>
       ///供应商邮箱地址
       /// </summary>
       [Display(Name ="供应商邮箱地址")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string WebsiteEmail { get; set; }

       /// <summary>
       ///供应商电话
       /// </summary>
       [Display(Name ="供应商电话")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SupplierPhone { get; set; }

       /// <summary>
       ///联系人1
       /// </summary>
       [Display(Name ="联系人1")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string FirstName { get; set; }

       /// <summary>
       ///联系人1-电话
       /// </summary>
       [Display(Name ="联系人1-电话")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string FirstPhone { get; set; }

       /// <summary>
       ///联系人1-邮箱
       /// </summary>
       [Display(Name ="联系人1-邮箱")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string FirstEmail { get; set; }

       /// <summary>
       ///联系人2
       /// </summary>
       [Display(Name ="联系人2")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SecondName { get; set; }

       /// <summary>
       ///联系人2-电话
       /// </summary>
       [Display(Name ="联系人2-电话")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SecondPhone { get; set; }

       /// <summary>
       ///联系人2-邮箱
       /// </summary>
       [Display(Name ="联系人2-邮箱")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SecondEmail { get; set; }

       /// <summary>
       ///统一社会信用代码
       /// </summary>
       [Display(Name ="统一社会信用代码")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreditCode { get; set; }

       /// <summary>
       ///是否启用
       /// </summary>
       [Display(Name ="是否启用")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? IsLock { get; set; }

       /// <summary>
       ///供应商LOGO地址
       /// </summary>
       [Display(Name ="供应商LOGO地址")]
       [MaxLength(300)]
       [Column(TypeName="nvarchar(300)")]
       [Editable(true)]
       public string LOGOAddress { get; set; }

       /// <summary>
       ///供应商图片
       /// </summary>
       [Display(Name ="供应商图片")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string SupplierImg { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(300)]
       [Column(TypeName="nvarchar(300)")]
       [Editable(true)]
       public string Descs { get; set; }

       
    }
}